home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
Text.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
1KB
|
53 lines
/*
* Text.ifx.pre
* Written by Thomas Krehbiel
*
* Generate text.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Text_'
txt = GETCLIP(base||'Text')
font = GETCLIP(base||'Font')
size = GETCLIP(base||'Size')
x = GETCLIP(base||'X')
y = GETCLIP(base||'Y')
shad = GETCLIP(base||'Shadow')
IF txt = "" THEN txt = "Sample Text"
IF font = "" THEN font = "Helvetica.font"
IF size = "" THEN size = 15
IF x = "" THEN x = -1
IF y = "" THEN y = -1
IF shad = "" THEN shad = 1
Gadget.1 = 'STRING 100 5 250 14 "Text:"' '"'txt'"'
Gadget.2 = 'STRING 100 20 150 14 "Font:"' '"'font'"'
Gadget.3 = 'INTEGER 300 20 50 14 "Size:"' size
Gadget.4 = 'INTEGER 100 35 50 14 "Position X:"' x
Gadget.5 = 'INTEGER 200 35 50 14 "Y:"' y
Gadget.6 = 'CHECK 100 52 26 11 "Create Drop Shadow?"' shad
Gadget.7 = 'END'
NewComplexRequest '"Text Parameters"' Gadget 380 70
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'Text', result.1)
CALL SETCLIP(base||'Font', result.2)
CALL SETCLIP(base||'Size', result.3)
CALL SETCLIP(base||'X', result.4)
CALL SETCLIP(base||'Y', result.5)
CALL SETCLIP(base||'Shadow', result.6)
EXIT